package com.gaswell.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

/**
 * @ClassName QjVo
 * @Author xiaow
 * @DATE 2023/5/4 16:31
 **/
@AllArgsConstructor
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class QjVo implements Serializable {
    private String zwbh;
    private String ywbh;


    public static List<String>  getZwbhs(List<QjVo> qjvos){
        LinkedList<String> zwbhs = new LinkedList<>();
        qjvos.forEach(qjvo->{
            zwbhs.add(qjvo.getZwbh());
        });
        return zwbhs;
    }

    public static List<String>  getYwbhs(List<QjVo> qjvos){
        LinkedList<String> ywbhs = new LinkedList<>();
        qjvos.forEach(qjvo->{
            ywbhs.add(qjvo.getYwbh());
        });
        return ywbhs;
    }
}
